﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Twitter Login
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Welcome, <%= ViewData["TwitterUser"] %>!</h2>

<% using(Html.BeginForm("TwitterAddUser", "Account")) { %>
	<% if (ViewData["ShowPickName"]!=null && (bool)ViewData["ShowPickName"]) { %>
		<div class="editor-field">Please pick a username, since "<%= ViewData["TwitterUser"] %>" is already taken here:</div>
		<div class="editor-field"><input type="text" name="newUserName" id="newUserName" /></div>
	<% } %>

	<div class="editor-field">Please enter your email to receive notifications from your team:</div>
	<div class="editor-field"><input type="text" name="email" id="email" /></div>
	<input type="submit" value="Register" />
<% } %>

</asp:Content>